package com.ld.security.server.blog.modules.cms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.common.core.base.column.MapJson;
import com.ld.security.common.mybatis.anno.LabelKeys;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.base.entity.LabelMap;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.auth.common.sys.entity.SysUserEntity;
import com.ld.security.server.blog.modules.cms.constant.CmsCollectUserRelConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("cms_collect_user_rel")
@ApiModel("集合用户关联")
@Data
public class CmsCollectUserRelEntity  extends SuperEntity implements LabelMap
{







  @ApiModelProperty("用户编号")
  @SqlKey(SqlCondition.eq)
  @LabelKeys(value = SysUserEntity.class)
    private String userId;

  @ApiModelProperty("关联类型")
  @SqlKey(SqlCondition.eq)
  private CmsCollectUserRelConstant.relType relType;

  @LabelKeys(value = CmsCollectEntity.class)
  @ApiModelProperty("集合编号")
  @SqlKey(SqlCondition.eq)
    private String collectId;

  private MapJson labelMap;


        }
